package com.yc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * InnoDB free: 4096 kB
 * </p>
 *
 * @author zzw
 * @since 2022-06-15
 */
@Data
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论id
     */
    @TableId(value = "cmid", type = IdType.AUTO)
    private Integer cmid;

    /**
     * 动漫id
     */
    private Integer ctid;

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 评论时间
     */
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime cmdate;

    /**
     * 评论内容
     */
    private String cmdetails;

    /**
     * 赞数
     */
    private Integer praisenum;

    /**
     * 踩数
     */
    private Integer stampnum;
}
